/*
 * Copyright (c) 2007 Compl Yue Still, All Rights Reserved.
 */

package oex.ui.shapes
{
	import flash.events.*;
	import flash.ui.*;
	
	import oex.ui.*;
	
	public class Circle extends ObjectShape
	{
		
		private var _radius:uint;
		
		public function Circle(radius:uint=50, color:uint=0)
		{
			super(color);
			this._radius = radius;
		}
		
		override public function redrawShape(alpha:Number):void
		{
			graphics.clear();
			graphics.lineStyle(1.0, 0, 1.0);
			graphics.beginFill(_color, alpha);
			graphics.drawCircle(0, 0, _radius);
			graphics.endFill();
		}
		
	}
}
